<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="Tooplate">
    <link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap" rel="stylesheet">

    <title>ArtXibition Event HTML Template</title>


    <!-- Additional CSS Files -->
    <link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">

    <link rel="stylesheet" type="text/css" href="/assets/css/font-awesome.css">

    <link rel="stylesheet" type="text/css" href="/assets/css/owl-carousel.css">

    <link rel="stylesheet" href="/assets/css/tooplate-artxibition.css">
<!--

Tooplate 2125 ArtXibition

https://www.tooplate.com/view/2125-artxibition

-->
    </head>
    
    <body>

    <div th:replace="Header"></div>


    <!-- ***** Header Area End ***** -->

    <!-- ***** About Us Page ***** -->
    <div class="page-heading-about">
        <div class="container">
            <div class="row">
            </div>
        </div>
    </div>

    <div class="about-item">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">
                    <div class="left-image">
                        <img src="/assets/images/about-image.jpg" alt="party time">
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="right-content">
                        <div class="down-content">
                            <h4 th:text="${activity.getTitle()}"></h4>
                            <ul>
                                <li th:text="${activity.getLocation()}"></li>
                                <li th:text="${activity.getStartTime()}"></li>
                            </ul>
                            <div class="main-dark-button">
                                <span th:unless="${#arrays.contains(session.reservations,activity.getId())}">
                                    <a th:href="@{/addreservation/{id}(id=${activity.getId()})}"><i class="fa fa-ticket"></i>预约</a>
                                </span>
                                <span th:if="${#arrays.contains(session.reservations, activity.getId())}">
                                    <i class="fa fa-ticket"></i>已预约</a>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="about-upcoming-shows">
        <div class="container">
            <div class="row">
                <div class="col-lg-9">
                    <h2 th:text="${activity.getTitle()}"></h2>
                    <p th:text="${activity.getDescription()}"></p>
                    <h4>活动地址及时间</h4>
                    <ul>
                        <li><span>活动地址</span><span th:text="${activity.getLocation()}"></span></li>
                        <li><span>开始时间：</span><span th:text="${activity.getStartTime()}"></span></li>
                        <li><span>结束时间：</span><span th:text="${activity.getEndTime()}"></span></li>
                    </ul>
                    <h4>最大参与人数</h4>
                    <p th:text="${activity.getMaxParticipants()}"></p>
                    <div class="text-button">
                        <span th:unless="${#arrays.contains(session.reservations,activity.getId())}">
                            <a th:href="@{/addreservation/{id}(id=${activity.getId()})}">预约 <i class="fa fa-arrow-right"></i></a>
                        </span>
                        <span th:if="${#arrays.contains(session.reservations, activity.getId())}">
                            已预约
                        </span>
                        </div>
                </div>

            </div>
        </div>
    </div>

    <div class="also-like">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h2>You Might Also Like...</h2>
                </div>
                <div class="col-lg-4">
                    <div class="like-item">
                        <div class="thumb">
                            <a href="reservation.html"><img src="/assets/images/like-01.jpg" alt=""></a>
                            <div class="icons">
                                <ul>
                                    <li><a th:href="event-details"><i class="fa fa-arrow-right"></i></a></li>
                                    <li><a th:href="ticket-details"><i class="fa fa-ticket"></i></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="down-content">
                            <span>Sept 10 to 14, 2021</span>
                            <a href="reservation.html"><h4>Wonder Land Music and Arts Festival</h4></a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="like-item">
                        <div class="thumb">
                            <a href="reservation.html"><img src="/assets/images/like-02.jpg" alt=""></a>
                            <div class="icons">
                                <ul>
                                    <li><a th:href="event-details"><i class="fa fa-arrow-right"></i></a></li>
                                    <li><a th:href="ticket-details"><i class="fa fa-ticket"></i></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="down-content">
                            <span>Oct 11 to 16, 2021</span>
                            <a th:href="event-details"><h4>Big Water Splashing Festival</h4></a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="like-item">
                        <div class="thumb">
                            <a href="reservation.html"><img src="/assets/images/like-03.jpg" alt=""></a>
                            <div class="icons">
                                <ul>
                                    <li><a th:href="event-details"><i class="fa fa-arrow-right"></i></a></li>
                                    <li><a th:href="ticket-details"><i class="fa fa-ticket"></i></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="down-content">
                            <span>Nov 10 to 18, 2021</span>
                            <a th:href="event-details"><h4>Tiger Dance Hip Hop Festival</h4></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- *** Subscribe *** -->
    <div class="subscribe">
        <div class="container">
            <div class="row">
                <div class="col-lg-4">
                    <h4>Subscribe Our Newsletter:</h4>
                </div>
                <div class="col-lg-8">
                    <form id="subscribe" action="" method="get">
                        <div class="row">
                          <div class="col-lg-9">
                            <fieldset>
                              <input name="email" type="text" id="email" pattern="[^ @]*@[^ @]*" placeholder="Your Email Address" required="">
                            </fieldset>
                          </div>
                          <div class="col-lg-3">
                            <fieldset>
                              <button type="submit" id="form-submit" class="main-dark-button">Submit</button>
                            </fieldset>
                          </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- *** Footer *** -->
    <div th:replace="footer"></div>
    <!-- jQuery -->
    <script src="/assets/js/jquery-2.1.0.min.js"></script>

    <!-- Bootstrap -->
    <script src="/assets/js/popper.js"></script>
    <script src="/assets/js/bootstrap.min.js"></script>

    <!-- Plugins -->
    <script src="/assets/js/scrollreveal.min.js"></script>
    <script src="/assets/js/waypoints.min.js"></script>
    <script src="/assets/js/jquery.counterup.min.js"></script>
    <script src="/assets/js/imgfix.min.js"></script>
    <script src="/assets/js/mixitup.js"></script>
    <script src="/assets/js/accordions.js"></script>
    <script src="/assets/js/owl-carousel.js"></script>
    
    <!-- Global Init -->
    <script src="/assets/js/custom.js"></script>
  </body>
</html>